package com.codeZ.MementoPattern.instance;

import lombok.Data;

/**
 * 角色状态存储
 *
 * @author codeZhang
 * @Date 2024/8/30 14:15
 */
@Data
public class RoleStateMemento {
    private int vitality;

    private int attack;

    private int defense;

    public RoleStateMemento(int vitality, int attack, int defense) {
        this.vitality = vitality;
        this.attack = attack;
        this.defense = defense;
    }

}
